package com.qingxuan.mybatis.plus.study.demo1.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * mybatis-plus 测试
 * @author yy.lei
 * @date 2021/10/17
 * @since v1.0.0
 */
@Configuration
public class MybatisPlusConfig {

	/**
	 * 分页插件
	 */
	@Bean
	public PaginationInterceptor PaginationInterceptorpaginationInterceptor() {
		return new PaginationInterceptor();
	}
}
